package com.cloudkinto.vo.user;

import com.cloudkinto.vo.company.CompanyPageVo;
import com.cloudkinto.vo.warehouse.WarehouseRes;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @author zhangyy
 * @date 2020/4/18 16:58
 * @description:
 */
@Data
@NoArgsConstructor
public class UserUpdateReq {
    @ApiModelProperty("id")
    private Long id;
    @ApiModelProperty("姓名")
    @NotNull(message = "pls.input.username")
    @Length(min = 1, max = 20, message = "username.length.1-20")
    private String userName;
    @ApiModelProperty("角色id")
    @NotNull(message = "pls.choose.role")
    private Long roleId;
    @ApiModelProperty("邮箱")
    private String userMail;
    @ApiModelProperty("电话")
    private String userPhone;
    @ApiModelProperty("头像")
    private Long headFileId;
    @ApiModelProperty("0 客户全部可见 1手动选择")
    private int whiteCus;
    @ApiModelProperty("可见客户id")
    private List<CompanyPageVo> cusList;

    @ApiModelProperty("0 仓库全部可见 1手动选择")
    private int whiteWh;
    @ApiModelProperty("可见仓库id")
    private List<WarehouseRes> whList;
}
